<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Radiator Information Management</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/datepicker/datepicker.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
	<!-- 表单校验 -->
	<jsp:include page="/resources/resource-refer/component-validform-reference.jsp" />
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
  </head>
  <script type="text/javascript">
  	$(function(){
		$("form[name='heatSinkerForm']").Validform({
			btnSubmit: "input[name='submit']",
			btnReset: "input[name='reset']",
			tiptype: function(msg, o, cssctl){
				//msg：提示信息;
				//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素（或表单对象），type指示提示的状态，值为1、2、3、4， 1：正在检测/提交数据，2：通过验证，3：验证失败，4：提示ignore状态, curform为当前form对象;
				//cssctl:内置的提示信息样式控制函数，该函数需传入两个参数：显示提示信息的对象 和 当前提示的状态（既形参o中的type）;
				if(!o.obj.is("form")){//验证表单元素时o.obj为该表单元素，全部Verification Passed提交表单时o.obj为该表单对象;
					var objtip=o.obj.siblings(".Validform_checktip");
					cssctl(objtip,o.type);
					objtip.text(msg);
				} else {
					var objtip=o.obj.find("#msgdemo");
					cssctl(objtip,o.type);
					objtip.text(msg);
				}
			},
			postonce: true, //开启二次提交防御，在数据成功提交后，表单将不能再继续提交
			showAllError: true, //提交表单时所有错误提示信息都会显示
			beforeSubmit: function(curform) { //在验证成功后，表单提交前执行的函数，curform参数是当前表单对象
// 				curform.submit();
				return true; //这里明确return false的话表单将不会提交
			}
		});
  	});
  
  	/**
  	 * 散热器信息提交回调
  	 * @param {Object} data
  	 */
  	function uploadCallBack(data) {
  		var resJson = $.parseJSON(data);
  		if(resJson.success) {
  			Dialog.alert("Successful Operation！", function() {
  				var index = parent.layer.getFrameIndex(window.name)
				parent.window.frames["c_content_content"].location = path+"beshs/sinkAction!queryHeatSinkerPage.do?date="+new Date();
  				parent.layer.close(index);
  			});
  		} else {
  			Dialog.alert("System error, please contact adminitrator！");
  		}
  	}
  </script>
  <body>
    <div class="content_all">
  		<!--导航条-->
  		<div class="insertinfo_table">
      		<form action="<%=basePath%>beshs/sinkActionJson!saveOrUpdateHeatSinker.do" name="heatSinkerForm"
      			enctype="multipart/form-data" method="post" target="async_frame_submit">
      		  <input name="heatSinker.id" type="hidden" class="s_input" value="<s:property value='heatSinker.id' />" />
      		  <iframe name="async_frame_submit" id="async_frame_submit" style="display: none;"></iframe>
      		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
      			<tr>
          			<th>Project：</th>
          			<td><s:select name="heatSinker.projectID" list="projectList" listKey="id" listValue="projectName" headerKey="" headerValue="Please select" cssClass="s_sel"
          					datatype="*" nullmsg="Please select the project！" errormsg="Please select the project！"></s:select>
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip"></div></td>
            		<th>District：</th>
          			<td>
          				<script type="text/javascript">
		      				function reloadCommunitys(projectUID, communityUID) {
		      					$("select[name='heatSinker.communityID']").children("option").slice(1).remove();
		      					if(projectUID!=null && projectUID!="") {
		      						$.getJSON(path+"beshs/communityActionJson!queryCommunitysByBelongs.do?date="+new Date(), {
		      							projectUID: projectUID
		      						}, function(data){
		      							for(var index=0; index<data.length; index++) {
		      								if(communityUID!=null && communityUID!="" && communityUID==data[index].id) {
			        							$("select[name='heatSinker.communityID']").append("<option value='"+data[index].id+"' selected='selected'>"+data[index].communityName+"</option>");
			        						} else {
			        							$("select[name='heatSinker.communityID']").append("<option value='"+data[index].id+"'>"+data[index].communityName+"</option>");
			        						}
		      							}
		      						});
		      					}
		      				}
		      					
		      				$(function() {
		      					$("select[name='heatSinker.projectID']").change(function(){
				        			var projectUID = $(this).val();
				        			var communityUID = $("select[name='heatSinker.communityID']");
				        			reloadCommunitys(projectUID, communityUID);
				        		});
		      				});
		      			</script>
		      			<s:select name="heatSinker.communityID" list="communityList" listKey="id" listValue="communityName" headerKey="" headerValue="Please select" cssClass="s_sel"
		      				datatype="*" nullmsg="Please select the district！" errormsg="Please select the district！"></s:select>
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
          			<th>Building：</th>
          			<td>
          				<script type="text/javascript">
				       		function reloadBuildings(projectUID, communityUID, buildingUID) {
			        			$("select[name='heatSinker.buildingID']").children("option").slice(1).remove();
			        			$.getJSON(path+"beshs/buildingActionJson!queryBuildingsByBelongs.do?date="+new Date(), {
			        				projectUID: projectUID,
			        				communityUID: communityUID
			        			}, function(data) {
			        				for(var index=0; index<data.length; index++) {
			        					if(buildingUID!=null && buildingUID!="" && buildingUID==data[index].id) {
	        								$("select[name='heatSinker.buildingID']").append("<option value='"+data[index].id+"' selected='selected'>"+data[index].buildingName+"</option>");
	        							} else {
	        								$("select[name='heatSinker.buildingID']").append("<option value='"+data[index].id+"'>"+data[index].buildingName+"</option>");
	        							}
			        				}
			        			});
			        		}
			        		
			        		$(function(){
			        			$("select[name='heatSinker.projectID']").change(function(){
			        				var projectUID = $(this).val();
			        				var communityUID = $("select[name='heatSinker.communityID']").val();
			        				var buildingUID = $("select[name='heatSinker.buildingID']").val();
			        				reloadBuildings(projectUID, communityUID, buildingUID);
			        			});
			        			
			        			$("select[name='heatSinker.communityID']").change(function(){
			        				var communityUID = $(this).val();
			        				var projectUID = $("select[name='heatSinker.projectID']").val();
			        				var buildingUID = $("select[name='heatSinker.buildingID']").val();
			        				reloadBuildings(projectUID, communityUID, buildingUID);
			        			});
			        		});
			       		</script>
			       		<s:select name="heatSinker.buildingID" list="buildingList" listKey="id" listValue="buildingName" headerKey="" headerValue="Please select" cssClass="s_sel"
			       			datatype="*" nullmsg="Please select the building！" errormsg="Please select the building！"></s:select>
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip"></div></td>
            		<th>Heat User：</th>
          			<td>
          				<script type="text/javascript">
			        		function reloadHeatRooms(projectUID, communityUID, buildingUID, heatRoomUID) {
			        			$("select[name='heatSinker.roomId']").children("option").slice(1).remove();
			        			$.getJSON(path+"beshs/heatRoomActionJson!queryHeatRoomsByBelongs.do?date="+new Date(), {
			        				projectUID: projectUID,
			        				communityUID: communityUID,
			        				buildingUID: buildingUID
			        			}, function(data) {
			        				for(var index=0; index<data.length; index++) {
			        					if(heatRoomUID!=null && heatRoomUID!="" && heatRoomUID==data[index].id) {
	        								$("select[name='heatSinker.roomId']").append("<option value='"+data[index].id+"' selected='selected'>"+data[index].houseNo+"</option>");
	        							} else {
	        								$("select[name='heatSinker.roomId']").append("<option value='"+data[index].id+"'>"+data[index].houseNo+"</option>");
	        							}
			        				}
			        			});
			        		}
			        		$(function(){
			        			$("select[name='heatSinker.projectID']").change(function(){
			        				var projectUID = $(this).val();
			        				var communityUID = $("select[name='heatSinker.communityID']").val();
			        				var buildingUID = $("select[name='heatSinker.buildingID']").val();
			        				var heatRoomUID = $("select[name='heatSinker.roomId']").val();
			        				reloadHeatRooms(projectUID, communityUID, buildingUID, heatRoomUID);
			        			});
			        			
			        			$("select[name='heatSinker.communityID']").change(function(){
			        				var communityUID = $(this).val();
			        				var projectUID = $("select[name='heatSinker.projectID']").val();
			        				var buildingUID = $("select[name='heatSinker.buildingID']").val();
			        				var heatRoomUID = $("select[name='heatSinker.roomId']").val();
			        				reloadHeatRooms(projectUID, communityUID, buildingUID, heatRoomUID);
			        			});
			        			
			        			$("select[name='heatSinker.buildingID']").change(function(){
			        				var buildingUID = $(this).val();
			        				var projectUID = $("select[name='heatSinker.projectID']").val();
			        				var communityUID = $("select[name='heatSinker.communityID']").val();
			        				var heatRoomUID = $("select[name='heatSinker.roomId']").val();
			        				reloadHeatRooms(projectUID, communityUID, buildingUID, heatRoomUID);
			        			});
			        		});
			        	</script>
						<s:select name="heatSinker.roomId" list="heatRoomList" listKey="id" listValue="houseNo" headerKey="" headerValue="Please select" cssClass="s_sel"
							datatype="*" nullmsg="Please select the heat user！" errormsg="Please select the heat user！"></s:select>
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
          			<th>Radiator No.：</th>
          			<td><input name="heatSinker.sinkNo" type="text" class="s_input" value="<s:property value='heatSinker.sinkNo' />" 
          					ajaxurl="<%=basePath%>beshs/formAsyncValidateActionJson!validSinkNoUnique.do?entityUuid=<s:property value='heatSinker.id' />"
          					datatype="/^[0-9a-zA-Z]{1,40}$/" sucmsg="Radiator No. Verification Passed！" nullmsg="Please enter radiator no.！" errormsg="Radiator No. only can be composed of letters,numbers and dashes within 1~40 characters！"/>
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Radiator No. only can be composed of letters,numbers and dashes within 1~40 characters！</div></td>
            		<th>Radiator Type：</th>
          			<td><input name="heatSinker.sinkType" type="text" class="s_input" value="<s:property value='heatSinker.sinkType' />" 
          					datatype="/^[\-0-9a-zA-Z\u4e00-\u9fa5]{2,25}$/" sucmsg="Radiator Type Verification Passed！" nullmsg="Please enter radiator type！" errormsg="Radiator Type only can be composed of letters,numbers and dashes within 2~25 characters！" />
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Radiator Type only can be composed of letters,numbers and dashes within 2~25 characters!</div></td>
        		</tr>
        		<tr>
          			<th>Radiator Brand：</th>
          			<td>
          				<input name="heatSinker.brand" type="text" class="s_input" value="<s:property value='heatSinker.brand' />" 
          					datatype="/^[\-0-9a-zA-Z\u4e00-\u9fa5]{2,25}$/" ignore="ignore" errormsg="Radiator Brand only can be composed of letters,numbers and dashes within 2~25 characters！"/>
          				<div class="Validform_checktip"></div></td>
            		<th>Radiator Height：</th>
          			<td>
          				<input name="heatSinker.sinkHeight" type="text" class="s_input" value="<s:property value='heatSinker.sinkHeight' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" ignore="ignore" errormsg="Please enter integral or float type value！" />mm
          				<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
          			<th>Radiator Width：</th>
          			<td><input name="heatSinker.sinkWidth" type="text" class="s_input" value="<s:property value='heatSinker.sinkWidth' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" ignore="ignore" errormsg="Please enter integral or float type value！" />mm
          				<div class="Validform_checktip"></div></td>
            		<th>Radiator Length：</th>
          			<td><input name="heatSinker.sinkLength" type="text" class="s_input" value="<s:property value='heatSinker.sinkLength' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" ignore="ignore" errormsg="Please enter integral or float type value！" />mm
          				<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
          			<th>Radiator Central Distance：</th>
          			<td><input name="heatSinker.sinkCenDis" type="text" class="s_input" value="<s:property value='heatSinker.sinkCenDis' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" sucmsg="Radiator Central Distance Verification Passed！" nullmsg="Please enter Radiator Central Distance！" errormsg="Please enter integral or float type value！"/>
            			mm&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Please enter integral or float type value！</div></td>
            		<th>Power Calculation of Single Fin：</th>
          			<td><input name="heatSinker.calPower" type="text" class="s_input" value="<s:property value='heatSinker.calPower' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" sucmsg="Power Calculation of Single Fin Verification Passed！" nullmsg="Please enter power calculation of single fin！" errormsg="Please enter integral or float type value！"/>
            			W&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Please enter integral or float type value！</div></td>
        		</tr>
        		<tr>
          			<th>Radiator Fins：</th>
          			<td>
          				<input name="heatSinker.pieceNum" type="text" class="s_input" value="<s:property value='heatSinker.pieceNum' />" 
          					datatype="/^[1-9]\d*|0$/" ignore="ignore" errormsg="Please enter positive integer or 0!"/>
            			&nbsp;<span style="color:#FF0000;"></span>
            			<div class="Validform_checktip">Default 0！</div></td>
            		<th>Whether a cover existing：</th>
          			<td>
          				<s:select name="heatSinker.isHasHat" list="#{1:'Yes', 2:'No'}" headerKey="" headerValue="Please select" cssClass="s_sel"
          					datatype="*" nullmsg="Please select whether a cover existing！" errormsg="Please select whether a cover existing！" ></s:select>
          				&nbsp;<span style="color:#FF0000;">*</span>
          				<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
            		<th>Low Temperature Correction Factor(KT)：</th>
          			<td>
          				<input name="heatSinker.ktFactor" type="text" class="s_input" value="<s:property value='heatSinker.ktFactor' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" sucmsg="Low Temperature Correction Factor(KT) Verification Passed！" nullmsg="Please enter Low Temperature Correction Factor(KT)！" errormsg="Please enter integral or float type value！" />
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Please enter integral or float type value！</div></td>
            		<th>Coupling Correction Factor(KC)：</th>
          			<td>
          				<input name="heatSinker.kcFactor" type="text" class="s_input" value="<s:property value='heatSinker.kcFactor' />" 
          					datatype="n1-10|/^([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/" sucmsg="Coupling Correction Factor(KC) Verification Passed！" nullmsg="Please enter Coupling Correction Factor(KC)！" errormsg="Please enter integral or float type value！" />
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Please enter integral or float type value！</div></td>
        		</tr>
        		<tr>
        			<th>Installation personnel：</th>
          			<td>
          				<input name="heatSinker.installName" type="text" class="s_input" value="<s:property value='heatSinker.installName' />" 
          					datatype="/^[\-0-9a-zA-Z\u4e00-\u9fa5]{1,20}$/" ignore="ignore" errormsg="Installation personnel only can be composed of letters,numbers and dashes within 1~20 characters！" />
            			<div class="Validform_checktip"></div></td>
            		<th>Installation Time：</th>
          			<td>
          			<input id="sink_installTime" name="heatSinker.installTime" class="Wdate" value="<s:date name='heatSinker.installTime' format='yyyy-MM-dd' nice='false' />" errormsg="请输入正确格式的日期，如：2014-07-19！" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})" />
          				
<%--           				<input name="heatSinker.installTime" id="sink_installTime" type="text" class="s_input" value="<s:date name='heatSinker.installTime' format='yyyy-MM-dd' nice='false' />" onclick="selectDate(this,'yyyy-MM-dd')"  --%>
<!--           					datatype="/^(\d{4})-(\d{1,2})-(\d{1,2})$/" ignore="ignore" errormsg="Please enter date and time in correct format such as-- 2014-07-19！" readonly/> -->
<%--             			<img src="<%=basePath%>resources/datepicker/calendar.jpg" onclick="txtSelectDate('sink_installTime','yyyy-MM-dd')"/> --%>
            			<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
        			<th>Temperature Control Mode：</th>
          			<td>
          				<input name="heatSinker.tmpControlMode" type="text" class="s_input" value="<s:property value='heatSinker.tmpControlMode' />" 
          					datatype="/^[\-0-9a-zA-Z\u4e00-\u9fa5]{1,20}$/" sucmsg="Temperature Control Mode Verification Passed！" nullmsg="Please enter Temperature Control Mode！" errormsg="Temperature Control Mode only can be composed of letters,numbers and dashes within 1~20 characters！" />
            			&nbsp;<span style="color:#FF0000;">*</span>
            			<div class="Validform_checktip">Temperature Control Mode only can be composed of letters,numbers and dashes within 1~20 characters！</div></td>
            		<th>Recorder：</th>
          			<td>
          				<input name="heatSinker.recordName" type="text" class="s_input" value="<s:property value='heatSinker.recordName' />" 
          					datatype="/^[\-0-9a-zA-Z\u4e00-\u9fa5]{1,20}$/" ignore="ignore" errormsg="Recorder only can be composed of letters,numbers and dashes within 1~20 characters！"/>
            			<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
        			<th>Building Function：</th>
          			<td>
          				<s:select name="heatSinker.houseFunction" list="#{1:'Living room', 2:'bedroom', 3:'kitchen', 4:'toilet', 5:'terrace', 6:'other'}" headerKey="" headerValue="Please select" cssClass="s_sel"></s:select>
            		</td>
            		<th>Installation Picture：</th>
          			<td>
          				<script type="text/javascript">
	        				$(function(){
	            				<s:if test="attachFileMap == null">
	            					addListenerToFileField();
	            				</s:if>
	    					});
	        				
	        				/**
	            			 * 为文件域追加状态切换事件处理函数
	            			 * @return {TypeName} 
	            			 */
	            			function addListenerToFileField() {
	            				$("input[name='attachFile']").change(function(){
             						var absPath = $("input[name='attachFile']").val();
             						if(absPath!=null && $.trim(absPath)!="") {
             							var fileIndex = absPath.lastIndexOf("\\")>0?absPath.lastIndexOf("\\"):absPath.lastIndexOf("/");
             							//读取上传的文件名
             							var fileName = "";
             							if(fileIndex<0) {
             								fileName = absPath;
             							} else {
             								fileName = absPath.substring(fileIndex+1, absPath.length);
             							}
             							//读取上传附件的文件类型
             							var dotIndex = fileName.lastIndexOf(".");
             							var fileType = fileName.substring(dotIndex+1, fileName.length);
             							var verifyTagIndex = "jpg,JPG,gif,GIF,bmp,BMP,png,PNG,jpeg,JPEG,ico,ICO".indexOf(fileType);
             							if(verifyTagIndex < 0) {
             								Dialog.alert("Please upload files in jpg,JPG,gif,GIF,bmp,BMP,png,PNG,jpeg,JPEG,ico,ICO format!");
             								//清空文件域
                     						var attachFile = $("input[name='attachFile']");
                     						attachFile.after(attachFile.clone().val(""));
                     						attachFile.remove();
                     						//文件域事件监听
                     						addListenerToFileField();
             								return;
             							}
             							$("input[name='attachFile']").hide("fast");
             							//加载文件名
             							var fileNameLoad = "<p class='fileName_load_txt'>" + 
             													fileName + "&nbsp;&nbsp;" +
             													"<a class='fileName_load_txt' style='text-decoration: underline' target='_self' href='javascript:void(0)'>Delete</a>" +
             												"</p>";
             							$("input[name='attachFile']").parent("td").append(fileNameLoad);
             							//文件名删除处理
             							$("a.fileName_load_txt").click(function(){
             								removeFileNameTxt();
             							});
             						}
             					});
	            			 }
	            			 
	            			 /**
         					 * 删除上传文件加载名称
         					 */
         					function removeFileNameTxt() {
         						$("p.fileName_load_txt").remove();
         						//清空文件域
         						var attachFile = $("input[name='attachFile']");
         						attachFile.after(attachFile.clone().val(""));
         						attachFile.remove();
         						$("input[name='attachFile']").show("fast");
         						//文件域事件监听
         						addListenerToFileField();
         					}
	            			
	            			/**
	            			 * 删除已上传的散热器附件
	            			 */
	            			function deleteAttachFile(heatStationUID) {
	            				//异步删除系统附件
	            				Dialog.confirm("Are you sure to delete this attachment？", function() {
	            					$.getJSON(path+"beshs/sinkActionJson!deleteHeatSinkerAttach.do?date="+new Date(), {
	            						stationUID: heatStationUID
	            					}, function(data) {
	            						if(data.success) {
	            							Dialog.alert("Successful Operation！", function() {
	            								//处理页面效果
	            	            				$("p.fileName_load_txt").parent("td").empty().append("<input name='attachFile' type='file' class='s_input' />");
	            	            				addListenerToFileField();
	            							});
	            						} else {
	            							Dialog.alert("System error, please contact adminitrator！");
	            						}
	            					});
	            				});
	            			}
	            			
	            			function downloadAttach(fileMappingUID) {
	            				window.location = path + "beshs/fileMappingAction!downloadAttachFile.do?fileMappingUID="+fileMappingUID+"&date="+new Date();
	            			}
        				</script>
        				<s:if test="attachFileMap != null">
            				<p class='fileName_load_txt'>
            					<a href="javascript:downloadAttach('<s:property value='attachFileMap.id' />')"><s:property value="attachFileMap.orFilename" />.<s:property value="attachFileMap.fileType" /></a>
            					<a class='fileName_load_txt' style='text-decoration: underline' target='_self' href="javascript:deleteAttachFile('<s:property value='heatSinker.id' />')">[Delete]</a>
            				</p>
            			</s:if>
            			<s:else>
            			  				 <a href="javascript:;" class="a-upload"> <input type="file" name="attachFile" id="">Upload File</a> 
            			</s:else>
          			</td>
        		</tr>
        		<tr>
        			<th>Remark：</th>
          			<td colspan="3">
          				<textarea name="heatSinker.remark" cols="45" rows="3"
          					datatype="*1-400" ignore="ignore" errormsg="请填写有效内容，控制在1-400个字符！">
          					<s:property value='heatSinker.remark' /></textarea>
          				<div class="Validform_checktip"></div></td>
        		</tr>
        		<tr>
          			<td style="border:none;" colspan="4" align="center">
          				<input name="submit" type="submit" value="Submit" class="s_btn" />
            			<input name="reset" type="reset" value="Reset" class="s_btn"/></td>
        		</tr>
      		</table></form>
  		</div>
	</div>
	<div class="clear"></div>
  </body>
</html>
